package seTOee.reflact;

public class Student {
    private String name;
    private int age;
    private double score;
    public Student()
    {
        System.out.println("无参构造方法");
    }
    private Student(String name,int age,double score)
    {
        System.out.println("有参构造方法");
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    private void show()
    {
        System.out.println("姓名：" + name + "，年龄：" + age + "，成绩：" + score);
    }
    private void show1(String info)
    {
        System.out.println("姓名：" + name + "，年龄：" + age + "，成绩：" + score + "，信息：" + info);
    }
    private String display(String info, int age)
    {
        return  "姓名：" + name + "，年龄：" + age + "，成绩：" + score + "，信息：" + info;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }
}
